

import Vue from 'vue'
import router from 'vue-router'
import fro from '@/components/fro.vue'
import home from '../components/Home.vue'
import About from '../components/About.vue'


Vue.use(router)

const routes = [

    {path:'/home',components:home},
    {path:'/about',components:About},
    {path:'/',name:'fro',components:fro}
  
  ]

  const router = new router({
    mode: 'history',
    base:process.env.BASE_URL,
    routes
  })
  export default router